<?php
/**
 * Created by JiangJiaCai.
 * User: Administrator
 * Date: 2017/12/14 0014
 * Time: 10:44
 */

namespace ext\rpc;
//{use template}

use ext\lib\SimpleRpc;

class OrgRpc extends SimpleRpc
{
    //{method template}
    public $id = 0;
    protected $name = '';
    protected $competent_org = '';
    protected $reg_number = '';
    protected $org_number = '';
    protected $open_time = '';
    protected $amount = 0;

    /**
     * @return string
     */
    public function getName(): string
    {
        return $this->name;
    }

    /**
     * @param string $name
     * @return object
     */
    public function setName(string $name)
    {
        $this->name = $name;
        return $this;
    }

    /**
     * @return string
     */
    public function getCompetentOrg(): string
    {
        return $this->competent_org;
    }

    /**
     * @param string $competent_org
     * @return object
     */
    public function setCompetentOrg(string $competent_org)
    {
        $this->competent_org = $competent_org;
        return $this;
    }

    /**
     * @return string
     */
    public function getRegNumber(): string
    {
        return $this->reg_number;
    }

    /**
     * @param string $reg_number
     * @return object
     */
    public function setRegNumber(string $reg_number)
    {
        $this->reg_number = $reg_number;
        return $this;
    }

    /**
     * @return string
     */
    public function getOrgNumber(): string
    {
        return $this->org_number;
    }

    /**
     * @param string $org_number
     * @return object
     */
    public function setOrgNumber(string $org_number)
    {
        $this->org_number = $org_number;
        return $this;
    }

    /**
     * @return string
     */
    public function getOpenTime(): string
    {
        return $this->open_time;
    }

    /**
     * @param string $open_time
     * @return object
     */
    public function setOpenTime(string $open_time)
    {
        $this->open_time = $open_time;
        return $this;
    }

    /**
     * @return int
     */
    public function getAmount(): int
    {
        return $this->amount;
    }

    /**
     * @param int $amount
     * @return object
     */
    public function setAmount(int $amount)
    {
        $this->amount = $amount;
        return $this;
    }


}